#define _CRT_SECURE_NO_WARNINGS 1

#include <iostream>
#include "stack.h"

using namespace kia;
int main()
{
	stack<int> st1;
	st1.push(1);
	st1.push(2);
	st1.push(3);
	st1.push(4);
	st1.push(5);
	st1.push(6);
	while (!st1.empty())
	{
		cout << st1.top() << ' ' << endl;
		st1.pop();
		cout << "size::" << st1.size() << endl;
	}
	cout << endl;
	stack<int> st2;
	st2.push(20);
	st2.push(20);
	st2.push(20);
	st2.push(20);
	st2.push(20);
	cout << st1.size() << endl;
	cout << st2.size() << endl;
	st2.swap(st1);
	cout << st1.size() << endl;
	cout << st2.size() << endl;
}
